<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ProjectTeam
 *
 * @author Zoila
 */
class ProjectTeam extends AppModel{
    public $name = 'ProjectTeam';
    
    public $validate = array(
        'name' => array(
            'rule' => 'notEmpty'
        )
    );
    
    public $belongsTo = array(
        'Project' => array(
            'className'    => 'Project',
            'foreignKey'   => 'project_id'
        ),
        
        'Team' => array(
            'className'    => 'Team',
            'foreignKey'   => 'team_id'
        )
    );
}

?>
